<?
require_once("/var/www/html/new/d/common/auth.php");
require_once("/var/www/html/new/d/common/nav.php");
require_once("/var/www/html/new/d/class/Navi.php");
require_once("/var/www/html/new/d/class/LeftNavi.php");
require_once("/var/www/html/new/d/class/notice.class.php");
if(!$_SESSION['unreadmsg']){
	require_once('/var/www/html/new/d/common/autoload.php');
	$_SESSION['unreadmsg'] = \pft\notice::UnReadCount($_SESSION['sid'],$GLOBALS['le']);
}
$urls=$_a->authUrl();
if($_SESSION['sdtype']==0){//供应商是否由供应伙伴
	$str="select m.id from pft_member_relationship r join pft_member m on r.son_id=m.id where son_id=".$_SESSION['sid'].
		" and r.status=0 and m.status=0 and r.ship_type=0 limit 1";
	$GLOBALS['le']->query($str);
	if(!$GLOBALS['le']->fetch_assoc()){
		$urls=array_diff($urls,array("partner.html?dtype=1"));
	}
}
$leftnavi=new LeftNavi($_auth,$_auth_group,$_SESSION['sdtype'],$urls);

$ptypeT=array("A"=>"门票","B"=>"线路","C"=>"酒店",""=>"门票");
$defaultType=$ptypeT[$_REQUEST['p_type']]?$ptypeT[$_REQUEST['p_type']]:"门票";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/default.css"/>
<script language="javascript" src="js/jquery-1.8.0.min.js"></script>
<title>合作推广页</title>
<style>
.spread_cont{ border:3px solid #EBEBEB; width:76%; margin:15px 0 30px; padding:30px 5% 100px; margin-left:7%; background:url("images/spread_bg.png") right bottom no-repeat;}
.spread_cont h2{ font-size:24px; font-weight:bold; line-height:70px; text-align:center; margin:10px 0 30px;}
.spreadwod{ margin:20px 0;}
.spreadwod .spread_left{ float:left; width:50%;}
.spreadwod .spread_left h4{ padding:0 40px 0 20px; line-height:40px; font-size:14px; font-weight:bold;}
.spreadwod .spread_left p{ padding:0 40px 0 20px; text-indent:2em; line-height:24px;}
.spreadwod .spread_right{ border-left:1px solid #B4B5B5; width:49%; float:left;}
.spreadwod .spread_right h4{ padding:0 20px 0 40px; line-height:40px; font-size:14px; font-weight:bold;}
.spreadwod .spread_right p{ padding:0 13px 0 40px; text-indent:2em; line-height:24px;}
.spreadbann{ position:relative; z-index:9;}
.spreadbanna{ position:absolute; z-index:8; right:49px; _right:99px; top:27px; width:93px; height:28px; display:inline-block; cursor:pointer; background:url("images/spread_banna_bg.png");}
</style>
</head>
<body>
	<div id="mask"></div>

    <!--头部-->
    <div class="header">
        <div class="top">
            <ul class="top_right">
                <li><a href="#" id="setHome">设为首页</a><span>|</span></li>
                <li><a href="#" id="addFav">加入收藏</a><span>&nbsp;</span></li>
                <!-- <li><a href="#" >帮助中心</a><span>&nbsp;</span></li> -->
            </ul>
            <span class="welc">您好，<a href="account_info.html"><?=$_SESSION['sdname']?$_SESSION['sdname']."：":""?><?=$_SESSION['dname']?></a></span>
            <a href="notice.html?inbox" class="xiaoxi">消息（<span class="orange"><?=$_SESSION['unreadmsg']?></span>）</a>
            <span class="greyline">|</span>
			<a href="#" id="logout">[退出]</a>
        </div>

        <div class="head">
            <div class="logo">
            	<span><a href="http://www.12301.cc"><img src="images/index_logo.png" /></a></span>
            </div>
            <div class="search">
            	<form action="plist.html">
                	<input type="text" class="search_inpt" value="<?=$_REQUEST['key']?urldecode($_REQUEST['key']):""?>" placeText="输入您想找产品的名称关键词，如“故宫”" name="key" id="keyword"/>
					<input type="hidden" name="p_type" value="<?=$_REQUEST['p_type']?>" id="p_type"/>
                    <input type="submit" class="search_inpb" name="" value=""/>
                </form>
                <ul class="sear_more" id="sear_more">
                	<li id="firli"><?=$defaultType?></li>
                    <li p_type="A">门票</li>
                    <li p_type="B">线路</li>
                    <li p_type="C">酒店</li>
                    <!-- <li p_type="D">商品</li> -->
                </ul>
                <i class="xiala_icon"></i>
            </div>
            <div class="righed">
            	<a><img src="images/head_rigimg.png" /></a>
            </div>
        </div>
    </div>
	<script language="javascript" src="js/header.js"></script>
	<div class="navmem_war">
        <div class="navmem">
        	<h4><a href="home.html">我的平台首页</a></h4>
            <ul>
                <li><a href="spread.html" target="_blank">合作推广</a><span>|</span></li>
            	<li><a href="u/index2.html" target="_blank">关于票付通</a><span>&nbsp;</span></li>
            </ul>
        </div>
    </div>
	 <!--主体-->
    <div class="main">
        <div class="spread_cont">
        	<h2><img src="images/spreadtit.png" /></h2>
            <div class="spreadbann">
            	<img src="images/img/spread_banner.png" />
            	<a href="#" class="spreadbanna"></a>
            </div>
            <div class="spreadwod">
            	<div class="spread_left">
                	<h4>供应商越多，收益越多</h4>
                    <p>平台向供应商按订单或人次收取平台服务费，您介绍入驻的供应商，平台将按服务费收入的30%长期返还给您。为什么介绍入驻的分销商没有收益？是因平台对分销商是全免费服务。</p>
                </div>
            	<div class="spread_right">
                	<h4>我要如何推广</h4>
                    <p>您可以通过QQ、微信、短信将注册链接网址<a href="#">【立即生成】</a>或通过微信、微博、QQ空间、论坛分享<a href="#">【立即分享】</a>邀请同行或好友，他们注册使用平台，您即可参与平台收益收成。</p>
                </div>
                <div class="cl"></div>
            </div>
        </div>
<? include("common/footer.html");?>   